<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2020/7/28
  Time: 14:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>增加BUG</title>
    <link rel="stylesheet" href="/static/css/bootstrap.min.css" type="text/css"/>
    <script type="text/javascript" src="/static/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript">
        function myform() {
            var title=$("#title").val();
            if(title.length==0){
                alert("标题不能为空！")
                return false;
            }
            return true;
        }
    </script>
</head>
<body>

<form action="/yuzepeng/add" onsubmit="return myform()" method="post">
    <h2 class="text-center">增加BUG</h2>

    <table class="btn-primary">
        所属项目:<select name="projectId">
        <option value="1">图书管理系统</option>
        <option value="2">图书管理系统2</option>
        <option value="3">我是个大系统</option>
    </select>

        严重性:<select name="severity">
        <option value="1">文字错误</option>
        <option value="2">次要错误</option>
        <option value="3">严重错误</option>
    </select>
        BUG标题:<input type="text" name="title" id="title" value="${detail.title}"><br><br>
        报告人: <input type="text" name="reportUser" value="${detail.reportUser}"><br><br>
        <input type="submit" value="增加">
        <input type="reset" value="取消">
    </table>
</form>

</body>
</html>
